<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        <ui:composition template="../templates/default3.xhtml">  
            <ui:define name="content">
                <h:form id="addSalesContactForm">
                    <p:messages/>
                    <p:panel header="Create Sales Contact" id="addSalesInquiryPanel">
                        
                        <font class="fieldNote">* - Mandatory Field<br/><br/></font> 
                        <table class="panel">
                            <tr>
                                <td width="170px">Email Address:</td>
                                <td> 
                                    <p:inputText required="true" id="email" requiredMessage="Email Address is Required" value="#{salesInquiryManagerBean.emailAddress}" validatorMessage="Invaild Email Address Format"> 
                                        <!-- <f:validateLength minimum="8" maximum="30" /> -->
                                        <f:validateRegex pattern="^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$" />
                                    </p:inputText>
                                    <font class="fieldNote">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="btn"><hr/>
                                 <p:commandButton id="btnAddSalesContact" value="Create Sales Inquiry" actionListener="#{salesInquiryManagerBean.addSalesInquiry}" update="addSalesContactForm" ajax="true"/><br/>
                                 <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
                                </td>
                                </tr>
                        </table>
                    </p:panel>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>